<?php

/**
 * ResourcesPictures form.
 *
 * @package    rms
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class ResourcesPicturesForm extends BaseResourcesPicturesForm
{
  public function configure()
  {
    unset($this['resource']);
    $this->useFields( array( 'path' ));

    $this->setWidget('path', new sfWidgetFormInputFile());
    $this->setValidator('path', new sfValidatorFile(array(
        'mime_types' => 'web_images',
        'path' => sfConfig::get('sf_upload_dir').'/pictures',
        'required' => false,
      )));

    $this->widgetSchema->setLabels( array( 'path'  => '', ));
    
  }
}
